package demo4;

public class Student {
    private static String classes = "2025jcd";

    public void doClass(){
        System.out.println("调用了成员方法！！");
    }

    public static String getClasses() {
//        doClass();
        return classes;
    }

    public static void setClasses(String classes) {
        Student.classes = classes;
    }

    public static void main(String[] args) {
        System.out.println(Student.getClasses());//输出2025jcd
    }
}
